package org.dromara.basic.service;

import org.dromara.basic.domain.bo.TeachClassBo;
import org.dromara.basic.domain.vo.TeachClassVo;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 教学班级Service接口
 *
 * @author chl
 * @date 2024-09-10
 */
public interface ITeachClassService {

    /**
     * 查询教学班级
     */
    TeachClassVo queryById(Long classId);

    TeachClassVo queryByClassName(String className);

    /**
     * 查询教学班级列表
     */
    TableDataInfo<TeachClassVo> queryPageList(TeachClassBo bo, PageQuery pageQuery);

    /**
     * 查询教学班级列表
     */
    List<TeachClassVo> queryList(TeachClassBo bo);

    /**
     * 根据专业查询教学班列表
     */
    List<TeachClassVo> queryListByMajor( Integer majorId);

    /**
     * 新增教学班级
     */
    Boolean insertByBo(TeachClassBo bo);

    public Boolean insertByB(TeachClassBo bo);

    /**
     * 修改教学班级
     */
    Boolean updateByBo(TeachClassBo bo);

    /**
     * 校验并批量删除教学班级信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
